module.exports = {
  outputDir: 'dist',
  assetsDir: 'assets',
  lintOnSave: process.env.NODE_ENV === 'development', // 开发时为true,
  devServer: {
    open: true,
    host: 'localhost',
    port: '8081',
    https: false,
    hotOnly: false,
    before: require('./mock/mock-server.js'), // 拦截使用mock模拟数据**/
    proxy: {
      [process.env.VUE_APP_BASE_API + '/api']: {
        target: 'http://localhost:8089',
        ws: true,
        changeOrigin: true,
        pathRewrite: {
          ['^' + process.env.VUE_APP_BASE_API + '/api']: ''
        }
      }
    }
  }
}
